﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyBaoHiem.App_Code.Process;

using QuanLyBaoHiem.App_Code.Common.Utils;
namespace QuanLyBaoHiem.Screen
{
    public partial class frmDMLoaiBaoHiem : Form
    {
        LoaiBaoHiemProcess p = new LoaiBaoHiemProcess();
        public frmDMLoaiBaoHiem()
        {
            InitializeComponent();
        }

        private void frmDMLoaiBaoHiem_Load(object sender, EventArgs e)
        {
            ProjectUtils.SetStyleGrid(dtgvLoaiBaoHiem);
            BindingSource dg = new BindingSource();
            bindingNavigatorLoaiBaoHiem.BindingSource = dg;
            dg.DataSource = dtgvLoaiBaoHiem;
           
            DataTable dt = new DataTable();
            if (dt != null)
                dtgvLoaiBaoHiem.DataSource = p.LayDanhSachBangLoaiBaoHiem();
            else
                dtgvLoaiBaoHiem.DataSource = p.LayCauTrucBangLoaiBaoHiem();
        }
    }
}
